package cn.ittaoli.ajax.service;

import cn.ittaoli.ajax.model.*;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by lub_lenovo on 2017/8/9.
 */
public interface ArticleService {
    int insertArticle(ArticleFull articleFull);

    List<ArticleView> getAll();

    List<ArticleCommentTree> getAllComment(Integer articleId,Integer replyId);

    PageInfo<ArticleView> getByPage(Integer page, Integer rowsPerPage);

    PageInfo<ArticleView> getByPagePhone(Integer page, Integer rowPerPage, Integer navid);

    Map<String,Object> getArticle(Integer id);
}
